package top.purity.server.user.domain.repository;

import top.purity.server.user.domain.User;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @version 1.0
 * @Author Lmh
 * @Description
 * @CreateTime 2023-09-24 18:58
 */
public interface UserRepository extends JpaRepository<User, Long> {

    User getUserByUsernameAndTenantId(String username, String tenantId);
    User getUserByIdAndTenantId(Long id, String tenantId);

}
